home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 September (IDG) / Sep99.iso / Shareware World / Comms & Internet / LinkConverter 1.1.2 / Dialog Director v0.7 / Examples / Pets+.as < prev    next >
Encoding:
Text File  |  1998-01-12  |  923 b   |  14 lines  |  [TEXT/ToyS]

  1. on PetDialog(petName, petType, petRelation)
  2.     return dd auto dialog {size:[270, 226], name:"My Pets", style:movable dialog, default item:1, contents:[¬
  3.         {class:push button, bounds:[40, 192, 98, 212], name:"OK"}, ¬
  4.         {class:push button, bounds:[168, 192, 226, 212], name:"Cancel"}, ¬
  5.         {class:text field, bounds:[72, 16, 259, 32], name bounds:[8, 16, 57, 32], name:"name:", value:petName}, ¬
  6.         {class:radio group, bounds:[26, 48, 130, 66], button offset:[120, 16], max down:4, contents:¬
  7.             ["cat", "dog", "weasel", "snake", "moose", "parakeet", "squirrel", "gila monster"], value:petType}, ¬
  8.         {class:radio group, bounds:[26, 142, 126, 158], button offset:[120, 16], max down:2, contents:¬
  9.             ["love", "hate", "who cares?", "get along"], value:petRelation}, ¬
  10.         {class:group box, name:"Relation with:", bounds:[10, 124, 260, 180], style:secondary group} ¬
  11.             ]} with grayscale
  12. end PetDialog
  13.  
  14. get my PetDialog("Abbey", 3, 1)